package day9;

public class Parent {
    //public Parent(){}
    public Parent(int a){
        System.out.println("运行Parent构造");
    }
}

class Child extends Parent{
    public Child(){
        super(10);
        System.out.println("运行Child构造");
    }
}

class Son extends Child{
    public Son(){
        System.out.println("运行Son构造");
    }

    public static void main(String[] args) {
        //parent->child->son
        new Son();
    }
}